home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Graphics Programming (2nd Edition) / Visual Basic Graphics Programming 2nd Edition.iso / Src / Ch1 / Print.frm (.txt) < prev    next >
Visual Basic Form  |  1999-03-18  |  1KB  |  39 lines

  1. VERSION 5.00
  2. Begin VB.Form frmPrint 
  3.    Caption         =   "Print"
  4.    ClientHeight    =   1485
  5.    ClientLeft      =   60
  6.    ClientTop       =   345
  7.    ClientWidth     =   4680
  8.    BeginProperty Font 
  9.       Name            =   "MS Sans Serif"
  10.       Size            =   8.25
  11.       Charset         =   0
  12.       Weight          =   700
  13.       Underline       =   0   'False
  14.       Italic          =   0   'False
  15.       Strikethrough   =   0   'False
  16.    EndProperty
  17.    LinkTopic       =   "Form1"
  18.    ScaleHeight     =   1485
  19.    ScaleWidth      =   4680
  20.    StartUpPosition =   3  'Windows Default
  21. Attribute VB_Name = "frmPrint"
  22. Attribute VB_GlobalNameSpace = False
  23. Attribute VB_Creatable = False
  24. Attribute VB_PredeclaredId = True
  25. Attribute VB_Exposed = False
  26. Option Explicit
  27. Private Sub Form_Load()
  28. Const X = 1440
  29. Const Y = 720
  30.     AutoRedraw = True
  31.     Line (X - 100, Y - 100)-Step(100, 100)
  32.     Line (X + 100, Y - 100)-Step(-100, 100)
  33.     CurrentX = X
  34.     CurrentY = Y
  35.     Print "Line 1"
  36.     Print "Line 2", "Zone 2", "Zone 3";
  37.     Print "Line 3"
  38. End Sub
  39.